#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    this->setWindowTitle(QStringLiteral("第一个演示"));
    ui->labDemo->setText(QStringLiteral("欢迎使用Qt6"));
    ui->btnClose->setText(QStringLiteral("关闭"));
}

Widget::~Widget()
{
    if (ui) {
        delete ui;
        ui = nullptr;
    }
}

